home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / packer / gzip-1.2.2 / install < prev    next >
Encoding:
Text File  |  1993-06-15  |  8.1 KB  |  201 lines

  1. This is a generic INSTALL file for utilities distributions.
  2. Some features specific to gzip have been added.
  3.  
  4. To compile this package:
  5.  
  6. 1.  Configure the package for your system.  In the directory that this
  7. file is in, type `./configure'.  If you're using `csh' on an old
  8. version of System V, you might need to type `sh configure' instead to
  9. prevent `csh' from trying to execute `configure' itself.
  10.  
  11. The `configure' shell script attempts to guess correct values for
  12. various system-dependent variables used during compilation, and
  13. creates the Makefile(s) (one in each subdirectory of the source
  14. directory).  In some packages it creates a C header file containing
  15. system-dependent definitions.  It also creates a file `config.status'
  16. that you can run in the future to recreate the current configuration.
  17.  
  18. Running `configure' takes a minute or two.  While it is running, it
  19. prints some messages that tell what it is doing.  If you don't want to
  20. see the messages, run `configure' with its standard output redirected
  21. to `/dev/null'; for example, `./configure >/dev/null'.
  22.  
  23. To compile the package in a different directory from the one
  24. containing the source code, you must use a version of `make' that
  25. supports the VPATH variable, such as GNU `make'.  `cd' to the directory
  26. where you want the object files and executables to go and run
  27. `configure'.  `configure' automatically checks for the source code in
  28. the directory that `configure' is in and in `..'.  If for some reason
  29. `configure' is not in the source code directory that you are
  30. configuring, then it will report that it can't find the source code.
  31. In that case, run `configure' with the option `--srcdir=DIR', where
  32. DIR is the directory that contains the source code.
  33.  
  34. By default, `make install' will install the package's files in
  35. /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify an
  36. installation prefix other than /usr/local by giving `configure' the option
  37. `--prefix=PATH'.  Alternately, you can do so by consistently giving a value
  38. for the `prefix' variable when you run `make', e.g.,
  39.     make prefix=/usr/gnu
  40.     make prefix=/usr/gnu install
  41.  
  42. You can specify separate installation prefixes for
  43. architecture-specific files and architecture-independent files.  If
  44. you give `configure' the option `--exec-prefix=PATH' or set the
  45. `make' variable `exec_prefix' to PATH, the package will use PATH as
  46. the prefix for installing programs and libraries.  Data files and
  47. documentation will still use the regular prefix.  Normally, all files
  48. are installed using the regular prefix.
  49.  
  50. Another `configure' option is useful mainly in `Makefile' rules for
  51. updating `config.status' and `Makefile'.  The `--no-create' option
  52. figures out the configuration for your system and records it in
  53. `config.status', without actually configuring the package (creating
  54. `Makefile's and perhaps a configuration header file).  Later, you can
  55. run `./config.status' to actually configure the package.  You can also
  56. give `config.status' the `--recheck' option, which makes it re-run
  57. `configure' with the same arguments you used before.  This option is
  58. useful if you change `configure'.
  59.  
  60. `configure' ignores any other arguments that you give it.
  61.  
  62. If your system requires unusual options for compilation or linking
  63. that `configure' doesn't know about, you can give `configure' initial
  64. values for some variables by setting them in the environment.  In
  65. Bourne-compatible shells, you can do that on the command line like
  66. this:
  67.     CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure
  68.  
  69. For csh compatible shells, you can do something like this:
  70.  
  71.     (setenv CC 'gcc -traditional' ; ./configure)
  72.  
  73. The `make' variables that you might want to override with environment
  74. variables when running `configure' are:
  75.  
  76. (For these variables, any value given in the environment overrides the
  77. value that `configure' would choose:)
  78. CC        C compiler program.
  79.         Default is `cc', or `gcc' if `gcc' is in your PATH.
  80. INSTALL        Program to use to install files.
  81.         Default is `install' if you have it, `cp' otherwise.
  82.         If you have an non-standard `install', use INSTALL=cp
  83.  
  84. (For these variables, any value given in the environment is added to
  85. the value that `configure' chooses:)
  86. DEFS        Configuration options, in the form `-Dfoo -Dbar ...'
  87. CFLAGS        Compiler options, such as `-O -g ...'
  88. LIBS        Libraries to link with, in the form `-lfoo -lbar ...'
  89.  
  90. If you need to do unusual things to compile the package, we encourage
  91. you to figure out how `configure' could check whether to do them, and
  92. mail diffs or instructions to the address given in the README so we
  93. can include them in the next release.
  94.  
  95. 2.  Type `make' to compile the package.  If you want, you can override
  96. the `make' variables CFLAGS and LDFLAGS like this:
  97.  
  98.     make CFLAGS=-O2 LDFLAGS=-s
  99.  
  100. 3.  The package comes with self-tests. If you want to run them,
  101. type `make check'.
  102.  
  103. 4.  Type `make install' to install programs, data files, and
  104. documentation. This creates links between gzip, gunzip and zcat.
  105. You can create additional links uncompress, ungzip and gzcat if
  106. you prefer these names. You can also create links to unpack and pcat
  107. if your system uses packed files by default and you want to transform
  108. them transparently to gzip'ed files.
  109.  
  110. If you wish to use only the name gzcat and not overwrite an existing zcat, use:
  111.  
  112.     make ZCAT=gzcat install
  113.  
  114. The man pages are installed by default with an extension `.1' (one).
  115. If you want the extension `.l' (lower case L) use:
  116.  
  117.     make manext=l install
  118.  
  119. If you are using csh or tcsh, you must type `rehash' after `make install'
  120. to make sure that the command `gzip' will invoke the new executable.
  121.  
  122. 5.  You can remove the program binaries and object files from the
  123. source directory by typing `make clean'.  To also remove the
  124. Makefile(s), the header file containing system-dependent definitions
  125. (if the package uses one), and `config.status' (all the files that
  126. `configure' created), type `make distclean'.
  127.  
  128. The file `configure.in' is used as a template to create `configure' by
  129. a program called `autoconf'.  You will only need it if you want to
  130. regenerate `configure' using a newer version of `autoconf'.
  131.  
  132. 6.  You  can add the following  lines  to your  /etc/magic file so that
  133. file(1), if  your system supports it,  will recognize files created by
  134. gzip:
  135.  
  136. 0    string        \037\213    gzip compressed data
  137. >2    byte        8        - deflate method
  138. >3    byte        &0x1        , ascii
  139. >3    byte        &0x2        , continuation
  140. >3    byte        &0x4        , extra field
  141. >3    byte        &0x8        , original file name
  142. >3    byte        &0x10        , comment
  143. >3    byte        &0x20        , encrypted
  144. >8    byte        2        , max compression
  145. >8    byte        4        , max speed
  146.  
  147. If your version of 'file' does not accept octal numbers in strings, replace the
  148. first line with one of these:
  149.  
  150. 0    short        0x8b1f        gzip compressed data
  151. 0    short        0x1f8b        gzip compressed data
  152. 0    short        017613        gzip compressed data
  153.  
  154. Use the first form if your machine is a 386 or a Vax (little-endian machine),
  155. the second or third form otherwise.
  156.  
  157. 7. To rename .z files with the new .gz suffix, you can use or adapt
  158.    the following shell script:
  159.  
  160. #!/bin/sh
  161. for i in `find . -name '*.z' -type f -print`
  162. do
  163.     new=`echo "$i" | sed 's/\.z$/.gz/'`
  164.     mv "$i" "$new" || echo Failed renaming $i to $new
  165. done
  166.  
  167. If you wish to keep the old .z suffix as default without setting the
  168. GZIP environment variable to "--suffix .z", you can compile gzip with:
  169.  
  170.    make CFLAGS='-DZ_SUFFIX=\".z\"'
  171.  
  172.  
  173. 8.  Special targets
  174.  
  175. - For MSDOS, OS/2, VMS, Atari, Amiga, Primos, use the makefile or command
  176.   file provided in the appropriate subdirectory.
  177.  
  178. - On Xenix, some preprocessors do not define M_XENIX. You may have to do:
  179.  
  180.     DEFS='-DM_XENIX' ./configure
  181.  
  182. - On Xenix 2.3.2 for 286, do: make xenix_286
  183.  
  184. - On Coherent, do: make coherent
  185.  
  186. - On NeXT 3.0 or higher, Bill Bumgarner <bbum@stone.com> recommends:
  187.  
  188.    (setenv DEFS "-D_POSIX_SOURCE"; ./configure --prefix=/LocalDeveloper)
  189.     make CFLAGS="-O2" LDFLAGS="-s -object"
  190.  
  191.    To build a gzip package that can run on either the m68k or i386 family:
  192.  
  193.  (setenv DEFS "-D_POSIX_SOURCE -DNO_ASM"; ./configure --prefix=/LocalDeveloper)
  194.   make "CFLAGS=-O2 -arch m68k -arch i386" LDFLAGS="-s -object"
  195.  
  196. - If your system is a pure BSD system but incorrectly links string.h to
  197.   strings.h, you may get undefined mem* and str* symbols. Try recompiling with
  198.  
  199.       make clean
  200.       make CFLAGS="-DNO_STRING_H"
  201.